package com.zzy.demo.utils;

import java.util.Map;

import jodd.http.HttpRequest;
import jodd.http.HttpResponse;


/**
 * 
 * @author guokaige
 *
 */
public class HttpUtils {

	public static String post(String serverUrl, Map<String, Object> params) {
		// POST请求
		HttpResponse response = HttpRequest
				.post(serverUrl)
				.form(params)
				.queryEncoding("utf-8")
				.send();
		return response.bodyText();
	}

}
